home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19970626-19970929
/
000151_news@newsmaster….columbia.edu _Wed Aug 13 00:09:59 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-09-28
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id AAA15045
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 13 Aug 1997 00:09:59 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id AAA06860
for kermit.misc@watsun; Wed, 13 Aug 1997 00:09:58 -0400 (EDT)
Path: news.columbia.edu!news.new-york.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!infeed2.internetmci.com!newsfeed.internetmci.com!news.wolsi.com!news.aros.net!news.cs.utah.edu!cc.usu.edu!jrd
From: jrd@cc.usu.edu (Joe Doupnik)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Kermit macro question
Message-ID: <7YZBP$LJAPgE@cc.usu.edu>
Date: 12 Aug 97 10:40:51 MDT
References: <5soa33$9a8$1@gte1.gte.net>
Organization: Utah State University
Lines: 18
Xref: news.columbia.edu comp.protocols.kermit.misc:7452
In article <5soa33$9a8$1@gte1.gte.net>, dabolts@gte.net writes:
> Can you define/assign a macro that contains a variable in the name? For
> example:
>
> define \%a 1
> define MESS_\%a This is message 1
>
> where the macro should be named MESS_1 and contain "This is message 1"
>
> Thanks...
----------
Use hidden command _DEFINE which will expand substitution variables
in the left side at definition time. Plain regular DEFINE retains the spelling
without substitution, thus allowing dynamic spelling of macro names later
on (when \%a is replaced by its value). _DEFINE does the replacement at the
time the definition is created.
Try it.
Joe D.